package org.dschini.ui.maps.world.northamerica {

	import flash.display.Sprite;
	import org.dschini.ui.maps.*;

	public class GuadeloupeMap extends Map
	{
		public var guadeloupeMapStateLines:Sprite;
		public var guadeloupeMapShape:Sprite;
		
		override public function set mouseEnabled( mouseEnabled:Boolean ):void
		{
			super.mouseEnabled = mouseEnabled;
			guadeloupeMapShape.mouseEnabled = mouseEnabled;
			guadeloupeMapStateLines.mouseEnabled = mouseEnabled;
		}
		
		override public function set doubleClickEnabled( doubleClickEnabled:Boolean ):void
		{
			super.doubleClickEnabled = doubleClickEnabled;
			guadeloupeMapShape.doubleClickEnabled = doubleClickEnabled;
			guadeloupeMapStateLines.doubleClickEnabled = doubleClickEnabled;
		}
		
		override public function render():void
		{
			guadeloupeMapShape.visible = data.shapeVisible ? true : false;
			if( data.shapeColorTransform ){
				guadeloupeMapShape.transform.colorTransform = data.shapeColorTransform;
			}
			guadeloupeMapStateLines.visible = data.stateLinesVisible ? true : false;
			if( data.stateLinesColorTransform ){
				guadeloupeMapStateLines.transform.colorTransform = data.stateLinesColorTransform;
			}
		}
	}	
}
